package com.duanfh.Servlet;

import com.duanfh.HttpServlet.HttpServlet;
import com.duanfh.Request.Request;
import com.duanfh.Response.Response;

/**
 * @author duanfh
 */
public class MyServlet extends HttpServlet {
    @Override
    public void doGet(Request request, Response response) {
        try {
            System.out.println("do get");
            response.write("do get");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Override
    public void doPost(Request request, Response response) {
        try {
            System.out.println("do post");
            response.write("do post");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
